<template>
  <div class="table-slot-wrapper">
    <span class="common-text">{{ slotData.affairArchiveId ? yes : no }}</span>
  </div>
</template>

<script>
export default {
  name: 'AffairArchiveIdTableRender',
  props: {
    slotData: {
      type: Object,
      default: () => { }
    }
  },
  data() {
    return {
      yes: $.i18n('common.yes'),
      no: $.i18n('common.no'),
    };
  }
};
</script>

<style lang="scss" scoped>
.table-slot-wrapper {
  display: flex;
  align-items: center;
  width: 100%;

  .common-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-word;
  }
}
</style>
